
<dd>
<p><a href="<?php echo $this->url(array('module'=>'student', 'controller'=>'assessment',
'action'=>'add'));?>"><u>Add new assessment</u></a></p>
</dd>


<?php
$this->dojo()->enable();

$this->accordionContainer()->captureStart(
 'assessment',
  array('duration' => 200),
  array('style' => 'width: 300px; height: 325px;')
  
  );

foreach($this->assessments as $assessment){

    $grades = $this->url(array('module'=>'student', 'controller'=>"grade",
    'action'=>'index', 'id'=>$assessment->id));
    $edit = $this->url(array('module'=>'student', 'controller'=>'assessment',
    'action'=>'edit', 'id'=>$assessment->id));
    $delete = $this->url(array('module'=>'student', 'controller'=>'assessment',
    'action'=>'delete', 'id'=>$assessment->id)) ;


     $content = 'Weight of this group:'." ".$assessment['assess_weight']."%"."<br> Number of Asessments:"." ".$assessment['num_of_assign'].'<br><br>'.
    "<a href = $grades><u>View Grades</u></a>".'<br>'."<a href = $edit><u>Edit group</u></a>".'<br>'."<a href = $delete><u>Delete group</u></a>";

     echo $this->accordionPane($assessment['assess_name'], $content, array ('title' => $assessment['assess_name']),array ("style" => 'background-color: #CCCCFF', 'font-family:Serif'),
  array ('design' => 'headline;'));
}

echo $this->accordionContainer()->captureEnd('assessment');
?>
<br><br>

